package base;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;


public class Loadperson {
	   private final StringProperty id;
	    private final StringProperty name;
	    private final StringProperty position;
	    private final StringProperty sex;
	    private final StringProperty level;
	    private final StringProperty state;
	    
	    
	    public Loadperson(String id, String name,String position,String sex,String level,String state) {
	        this.id = new SimpleStringProperty(id);
	        this.name = new SimpleStringProperty(name);

	        this.position = new SimpleStringProperty(position);
	        this.sex = new SimpleStringProperty(sex);
	        this.level = new SimpleStringProperty(level);
	        this.state = new SimpleStringProperty(state);
	    }
	    
	    public Loadperson(String id, String name){
	    	this.id = new SimpleStringProperty(id);
	        this.name = new SimpleStringProperty(name);
	        this.position =null;
	        this.sex = null;
	        this.level =null;
	        this.state = null;
	    }
	    
	    public String getId() {
	        return id.get();
	    }
	    
	    public StringProperty idProperty() {
	        return id;
	    }
	    
	    public StringProperty nameProperty() {
	        return name;
	    }
    
	    public String getName() {
	        return name.get();
	    }
	    
	    public String getPosition() {
	        return position.get();
	    }
	    
	    public String getSex() {
	        return sex.get();
	    }
	    
	    public String getLevel() {
	        return level.get();
	    }
	    
	    public String getState() {
	        return state.get();
	    }
	  
	    
}
